/**
 * Predefined variables
 * Name = ddzGameLayer
 * DateTime = Wed Jan 19 2022 20:00:36 GMT+0800 (中国标准时间)
 * Author = Created by zhj9922
 * FileBasename = ddzGameLayer.ts
 * gitee： https://gitee.com/coyeking
 */
 
import { _decorator, Component, Node } from 'cc';
const { ccclass, property } = _decorator;
import { audioManager } from '../../../framework/audioManager';
import { GameModelLogic } from '../GameModelLogic';
 
@ccclass('ddzGameLayer')
export class ddzGameLayer extends GameModelLogic {
    @property({
        type: Node,
        displayName:'右上角模块',
    })
    public ui_swith_panel: Node = null;

    @property({
        type: Node,
        displayName:'空节点',
    })
    public ui_empty: Node = null;
	
	
    onEnable () {
        super.onEnable();
        
        return;
    };
    
    onDestroy () {
        super.onDestroy();
        
    };
	
    /**
     * 按钮点击事件
     * @param event 
     * @param customEventData 
     */
	private onClick (event: Event, customEventData: string) {
        let _this = this;
        audioManager.instance.playSound();
        
        switch (customEventData) {
            case 'switch':
                _this.ui_swith_panel.active = !_this.ui_swith_panel.active;
                break;
        }
    }
    
}

